home *** CD-ROM | disk | FTP | other *** search
- %case zbuildOrder%
- %if not windname = Clipboard%
- { z%windname%.p% %}
- %endif%
- %case buildOrder%
- %if not windname = Clipboard%
- { %windname%.p% %}
- %endif%
- %case sourcefile%
- %if not windname = Clipboard%
- %genfile zWindow z+windname%
- %if not fileExists windname%
- %genfile Window windname%
- %endif%
- %endif%
- %case instance%
- %if not windname = Clipboard%
- its%windname%:% %C%windname%;
- %if not firstWindow%
- %multiWindow%
- %endif%
- %endif%
- %case initNil%
- %if not windname = Clipboard%
- its%windname% := nil;
- %if not firstWindow%
- %multiWindow%
- %endif%
- %endif%
- %case free%
- %if not windname = Clipboard%
- if its%windname% <> nil then begin
- its%windname%.free;
- end;
- %endif%
- %case CloseWind%
- %if not windname = Clipboard%
- %if firstWindow%
- if theWindow = its%windname% then begin
- inherited CloseWind (theWindow);
- %else%
- end else if theWindow = its%windname% then begin
- its%windname%.Free;
- its%windname% := nil;
- itsWindow := nil;
- %endif%
- %endif%
- %case zinterface%
- %if not windname = Clipboard%
- type
- Z%WindName% = object (CWindow)
- itsMainPane: CPane;
- itsGopher: CBureaucrat; {Bureaucrat to make the Gopher}
- { when Window is activated }
- mainScroll: CScrollPane;
- mainPanorama: CPanorama;
-
- {Panes in this window:}
- %for each item gen instance%
-
- {----------}
- Procedure I%WindName%% %(aSupervisor: CDirector);
- %for each item gen zMake.decl%
-
- Procedure Activate; override;
- Procedure DoCommand (theCommand: longint); override;
-
- end; {Z%WindName%}
-
- %endif%
- %case interface%
- %if not windname = Clipboard%
- type
- C%WindName% = object (Z%WindName%)
- %for each item gen instance.override%
- %for each item gen Make.decl%
-
- Procedure DoCommand (theCommand: longint); override;
-
- end; {C%WindName%}
-
- %endif%
- %case create%
- %if not windname = Clipboard%
- New (its%windname%);
- its%windname%.I%windname% (self);
- %if has growBox%
- gDecorator.PlaceNewWindow (its%windname%);
- %endif%
- %if firstWindow%
- itsMainPane := its%windname%.itsMainPane;
- itsWindow := its%windname%;
- %endif%
-
- %endif%
-